<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>动画效果练习</title>
    <script type="text/javascript" src="../js/jquery-3.4.1.min.js"></script>
    <script>
        $(function () {
            $("img").click(function () {
                $(this).animate({"left": "1600px", "top": "200px"}, 500)
                    .animate({"left": "200px", "top": "700px"}, 500)
                    .animate({"left": "800px", "top": "0px"}, 500)
                    .animate({"left": "1400px", "top": "700px"}, 500)
                    .animate({"left": "0px", "top": "200px"}, 500);
                $(this).click();
            });
        });
    </script>
</head>
<body>
<img src="../images/heihei.gif" alt="图片加载失败" style="position:relative;left: 0px;top: 200px;">
</body>
</html>